<script type="text/javascript" src="<{$APPLICATION_URL}>/Libraries/External/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
    tinyMCE.init({
        mode : "textareas",
        theme : "advanced",
        editor_selector:"content",
        plugins: "emotions",
        skin : "o2k7",
        theme_advanced_buttons1: "code,bold,italic,underline,separator,justifyleft, justifycenter, justifyright, justifyfull, separator, bullist, numlist,table,separator, link,unlink",
        theme_advanced_buttons1_add : "separator,forecolor,backcolor, separator",
        theme_advanced_buttons2 : "",
        theme_advanced_buttons3 : "",
        theme_advanced_toolbar_align : "left",
        theme_advanced_toolbar_location : "top"
    });
</script>
<div class="panes_vertical">
  <div class="box">
    <fieldset>
  	<div class="panes_horizontal"> 
  	<form method="post" action="<{$APPLICATION_URL}>/Admin/SystemEmail" name="frmForm">
    <{foreach name=outer item=systemEmailEntity from=$arrSystemEmailEntity}>
    <fieldset>
    	<legend><strong>&nbsp;&nbsp;<{$systemEmailEntity->name}>&nbsp;&nbsp;</strong></legend>
        <p>
        	<label>Name:</label>
        	<input type="text" name="subject[]" id="subject[]" value="<{$systemEmailEntity->subject}>"/><br>
        	<input type="hidden" name="id[]" id="id[]" value="<{$systemEmailEntity->id}>"/>
        </p>
        <p>
        	<label>Description:</label>
          	<textarea name="message[]" id="message" rows="8" cols="43" class="content"><{$systemEmailEntity->message}></textarea><br>
          	<{$systemEmailEntity->guidelineKeywords}>
        </p>
        <p>
            <label>Status:</label>
            <select name="status[]" id="status[]">
            	<option value=''>-- Select one --</option>
              	<{html_options options = $arrSystemEmailStatus selected=$systemEmailEntity->status}>
            </select>
        </p>
    </fieldset>
    <{/foreach}>
    <p>
        <input type="button" name="save" class="button" id="save" value=" Update " onclick="formSubmit();" />
        <input type="hidden" id="actionForm" name="actionForm" value=""/>
        <input type="hidden" id="actionKey" name="actionKey" value="<{$actionKey}>" />
    </p>
    </form>
    </div>
    <fieldset>
  </div>
</div>
<script type="text/javascript">
    function formSubmit()
    {
    	var theform = document.frmForm;

    	theform.actionForm.value = 'submit';
    	theform.submit();
    	return true;
    }
</script>
